package com.lishui.wateroj.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lishui.wateroj.model.pojo.dto.QuestionSubmitAddDTO;
import com.lishui.wateroj.model.pojo.dto.QuestionSubmitQueryDTO;
import com.lishui.wateroj.model.pojo.entity.QuestionSubmit;
import com.lishui.wateroj.model.pojo.vo.QuestionSubmitVO;
import com.lishui.wateroj.result.PageResult;

/**
* @author 24197
* @description 针对表【question_submit(题目提交)】的数据库操作Service
* @createDate 2024-04-13 21:17:48
*/
public interface QuestionSubmitService extends IService<QuestionSubmit> {

    /**
     * 提交题目记录
     * @param questionSubmitAddDTO
     * @return
     */
    Long doQuestionSubmit(QuestionSubmitAddDTO questionSubmitAddDTO);

    /**
     * 分页获取题目封装
     */
    PageResult getQuestionSubmitVOPage(QuestionSubmitQueryDTO questionSubmitQueryDTO);

    /**
     * 获取查询条件
     */
    QueryWrapper<QuestionSubmit> getQueryWrapper(QuestionSubmitQueryDTO questionSubmitQueryDTO);

    /**
     * 获取题目封装
     */
    QuestionSubmitVO getQuestionSubmitVO(QuestionSubmit questionSubmit);


}
